package tech.aistar.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import tech.aistar.entity.trading.Goods;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class CollectServiceTest {
    @Autowired
    private ICollectionsService collectionsService;
    @Test
    public void testPage(){
       // List<Goods> goods = collectionsService.findByGood(1);
        //System.out.println(goods.size());
        //PageInfo<Goods> pgood = collectionsService.findByGood(1,1,2);
        //System.out.println(pgood.getPages());
    }
}
